public class CarDirector {
    private CarBuilder carBuilder;
    public CarDirector(CarBuilder carBuilder) {
        this.carBuilder = carBuilder;
    }
    public Car buildCar() {
        carBuilder.buildCarengine();
        carBuilder.buildCarseat();
        carBuilder.buildtyre();
        return carBuilder.getCar();
    }
}
